package com.taotao.controller;
//用来处理页面请求,处理静态资源的controller

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    //处理首页的页面请求
    @RequestMapping("/")
    public String indexPage(){
        return "index";
    }

    //页面请求
    @RequestMapping("/{page}")
    public String pageRequest(@PathVariable String page){

        return page;
    }
}
